home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
jaz_clib.arc
/
JZPGECLR.C
< prev
next >
Wrap
Text File
|
1989-04-09
|
629b
|
22 lines
/*
┌────────────────────────────────────────────────────────────────────────────┐
│jzpgeclr.c │
│Clear the specified page with the specified attribute │
│ │
│ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 │
└────────────────────────────────────────────────────────────────────────────┘
*/
jzpgeclr(fpage,fattr)
int fpage,fattr;
{
int far *screen = (int far *) 0xb8000000;
register wcharattr,w;
wcharattr = fattr << 8 + 0x20; /* space char with specified attribute*/
screen += fpage * 2048;
for (w = 0 ; w < 2000 ; w ++) *screen ++ = wcharattr;
}